Skip to main content

everai secret

Manage secrets

Usage:

everai secret [-h] {create,delete,list,ls,get,update} ...

Commands:

  • create Create Secret from file or literal string
  • delete Delete secret
  • list (ls) List secret
  • get Get secret
  • update Update the Secret from file or literal string

Options:

  • -h, --help show this help message and exit

everai secret create

Create Secret from file or literal string

Example:

Create a Secret from literal.

everai secret create your-quay-io-secret-name \
--from-literal username=<your username> \
--from-literal password=<your password>

Create a Secret from a yaml file.

Create a yaml file named test-secret firstly, the data values ​​in the file content need to be base64 encoded. The data of the example like this:

name: your-quay-io-secret-name
data:
password: YmFyCg==
username: Zm9vCg==

Then, run the command like this:

everai secret create --from-file test-secret.yml your-quay-io-secret-name

Usage:

everai secret create [-h] [-f FROM_FILE] [-l FROM_LITERAL] [name]  

Positional arguments:

  • name The secret name

Options:

  • -h, --help show this help message and exit
  • -l FROM_LITERAL, --from-literal FROM_LITERAL Create secret from literal, for example: --from-literal name=user
  • -f FROM_FILE, --from-file FROM_FILE Create secret from file, for example: --from-file filename

everai secret delete

Delete secret

Example:

everai secret delete quay-secret

Usage:

everai secret delete [-h] name

Positional arguments:

  • name The secret name

Options:

  • -h, --help show this help message and exit

everai secret list (ls)

List secret

Example:

everai secret list

The result could be shown like this:

NAME                        ITEMS
------------------------ -------
quay-secret 2
your-quay-io-secret-name 2

Usage:

everai secret list [-h] [--output [OUTPUT]]  

Options:

  • -h, --help show this help message and exit
  • --output [OUTPUT], -o [OUTPUT] Output format, One of: (json, yaml, table, wide)

everai secret get

Get secret

Example:

everai secret get your-huggingface-secret-name

Usage:

everai secret get [-h] [--output [OUTPUT]] name

Positional arguments:

  • name The secret name

Options:

  • -h, --help show this help message and exit
  • --output [OUTPUT], -o [OUTPUT] Output format, One of: (json, yaml, table, wide)

everai secret update

Update the Secret from file or literal string

Example:

Update a Secret from literal.

everai secret update \
--from-literal username=<your username> \
--from-literal password=<your password> your-quay-io-secret-name

Update a Secret from a yaml file.

Create a yaml file named test-secret firstly, the data values ​​in the file content need to be base64 encoded. The data of the example like this:

name: your-quay-io-secret-name
data:
password: YmFyCg==
username: Zm9vCg==

Then, run the command like this:

everai secret update --from-file test-secret.yml your-quay-io-secret-name

Usage:

everai secret update [-h] [-f FROM_FILE] [-l FROM_LITERAL] [name]

Positional arguments:

  • name The secret name

Options:

  • -h, --help show this help message and exit
  • -l FROM_LITERAL, --from-literal FROM_LITERAL Create secret from literal, for example: --from-literal name=user
  • -f FROM_FILE, --from-file FROM_FILE Create secret from file, for example: --from-file filename, file is yaml for simply key value, all value should be string